import type { FrameworkConfiguration } from 'qiankun'

// qiankun 全局配置
export const qiankunConfig: FrameworkConfiguration = {
  // prefetch: true, // 是否开启预加载
  sandbox: {
    // experimentalStyleIsolation: true, // 开启实验性的样式隔离
    // strictStyleIsolation: true, // Shadow DOM 隔离
    experimentalStyleIsolation: true,
  },
  singular: true, // 是否为单实例场景
  // excludeAssetFilter: (url: string) => url.includes('vite-plugin-vue-devtools'),
  excludeAssetFilter(url) {
    // 排除特定的资源加载
    return url.includes('vite-plugin-vue-devtools') || url.includes('vue-devtools')
  },
}
